<?php
require_once("vcl/vcl.inc.php");
require_once("lib/db_connection.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class specificationDelete extends Page
{
       public $hiddenSpec = null;
       public $hiddenVeh = null;
       function specificationDeleteCreate($sender, $params)
       {
       $id = $_GET['veh'];
       $this->hiddenVeh->setValue($id);
       $spec_id = $_GET['specification'];
       $this->hiddenSpec->setValue($spec_id);

       $result = mysql_query("delete from veh_specification_tbl where vehicle_id='".$this->hiddenVeh->getValue()."' and specification_id='".$this->hiddenSpec->getValue()."'") or die(mysql_error());
       redirect('details_emission.php?layer=2&veh='.$this->hiddenVeh->getValue());


       }

}

global $application;

global $specificationDelete;

//Creates the form
$specificationDelete=new specificationDelete($application);

//Read from resource file
$specificationDelete->loadResource(__FILE__);

//Shows the form
$specificationDelete->show();

?>